﻿body {
    background-image: url('/assets/images/structure/background/ciel.png');
    background-repeat: repeat;
    padding: 50px;
    margin: 0px;
    position: relative;
    overflow-x: hidden;
    font-family: Consolas, monospace;
    font-size: 100%;
    color: #FFDAB9;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    text-decoration: none;
}

.caption-text {
    line-height: 1.1;
    color: #000000;
    margin-top: 5px;
    margin-bottom: 0;
    clear: both;
    float: none !important;
    display: block;
}

#banner_outline {
    background-image: url('/assets/images/structure/banner/banner_outline_orange.png');
    background-repeat: no-repeat;
    background-position: center top;
    margin: 0px auto 0px auto;
    padding: 0px;
    width: 984px;
    height: 214px;
    position: relative;
    overflow: hidden;
}

#banner {
    background-image: url('/assets/images/structure/banner/banner.png');
    background-repeat: no-repeat;
    background-position: center top;
    margin: 0px auto 0px auto;
    padding: 0px;
    width: 978px;
    height: 142px;
    position: relative;
    overflow: hidden;
    top: 17px;
}

#logo {
    width: 125px;
    height: 125px;
    position: relative;
    font-size: 11px;
    line-height: 1;
    white-space: pre;
    color: #000;
}

#bottomer {
    margin-top: 100px;
    text-align: center;
}

#bottom-notes {
    background-image: url('/assets/images/structure/wrapper.png');
    background-repeat: no-repeat;
    background-position: center;
    width: 600px;
    margin: -30px auto;
    padding-top: 15px;
    color: #FFA500;
}

#navBox {
    padding: 0px;
    margin: 0px auto 0px auto;
    width: 896px;
    height: 32px;
    position: relative;
    top: 21px;
}

#navBoxmenu {
    margin: 0px auto 0px auto;
    padding: 0px;
    width: 730px;
    height: 32px;
    position: relative;
    overflow: hidden;
    list-style-type: none;
    clear: left;
}

#navBoxmenu ul {
    padding: 0px;
    margin: 0px;
    list-style-type: none;
}

#navBoxmenu ul li {
    padding: 0px;
    margin: 0px 2px 0px 45px;
    width: 124px;
    height: 32px;
    position: relative;
    overflow: hidden;
    float: left;
    text-align: center;
    line-height: 200%;
}

a.button {
    background: url('/assets/images/structure/button.png') no-repeat 0 0;
    width: 124px;
    height: 32px;
    display: block;
    color: #000;
    font-size: 16px;
    text-align: center;
    line-height: 32px;
    text-decoration: none;
}

a.button:hover {
    background-position: 0 -32px;
    color: #ffffff;
    text-decoration: none;
}

a.button:active {
    background-position: 0 -32px;
    color: #ffffff;
    text-decoration: none;
}

.float-R {
    padding: 0px;
    margin: 5px 0px 5px 5px;
    position: relative;
    float: right;
    overflow: hidden;
}

.float-L {
    padding: 0px;
    margin: 5px 5px 5px 0px;
    position: relative;
    float: left;
    overflow: hidden;
}

.retro-inspectable {
  width: fit-content;
  height: fit-content;
  display: inline-block;
  position: relative;
}
.retro-inspectable span {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 2.5rem;
  color: #FFF;
  filter: drop-shadow(1px 1px 0 black) 
    drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black)
    drop-shadow(-1px -1px 0 black);
}
.retro-inspectable:hover span, .retro-inspectable:focus span {
  opacity: 1;
}

.cnt-box {
    padding: 0px;
    margin: 0px auto 15px auto;
    width: 710px;
    position: relative;
    overflow: hidden;
}

.cnt-boxTop {
    background-image: url('/assets/images/structure/block/block_top.png');
    background-repeat: no-repeat;
    background-position: center top;
    width: 710px;
    height: 65px;
    text-align: left;
    line-height: 300%;
    font-size: 200%;
    text-indent: 25px;
    color: #000;
    overflow: hidden;
}

.cnt-boxFiller {
    background-image: url('/assets/images/structure/block/block_filler.png');
    background-repeat: repeat-y;
    background-position: center top;
    padding: 0px;
    margin: 0px auto;
    width: 710px;
    position: relative;
    overflow: hidden;
}

.cnt-boxbottom {
    background-image: url('/assets/images/structure/block/block_bottom.png');
    background-repeat: no-repeat;
    background-position: center top;
    width: 710px;
    height: 55px;
    margin: 0 auto;
    overflow: hidden;
}

.cnt-boxInfo {
    border-top: 2px solid #FF9933;
    padding: 0px;
    margin: 0px auto;
    width: 664px;
    position: relative;
    color: #333333;
    overflow: hidden;
    font-size: 90%;
}

.cnt-boxInfo h1 {
    font-size: 160%;
    color: #FF9933;
    letter-spacing: -0.5px;
    line-height: 1;
}

.cnt-boxInfo h2 {
    margin: 0 0 0 0;
    font-size: 120%;
    line-height: 1;
}

.cnt-boxInfo h3 {
    color: #FF9933;
    letter-spacing: -0.5px;
}

.cnt-boxInfo h4 {
    margin: 0 0 5px 0;
    font-size: 85%;
    letter-spacing: 1px;
    line-height: 2;
}

.cnt-boxInfo p {
    margin: 0px 0 0 0;
    line-height: 1.5;
}

.cnt-boxInfo img {
    margin: 0 0 10px 20px;
    border: 2px solid #FF9933;
    background: #CCCCCC;
    image-rendering: pixelated;
    max-width: 100%;
    height: auto;
}

.badges8831 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.sparkle {
    position: fixed;
    pointer-events: none;
    font-size: 14px;
    z-index: 9999;
}

/* Мобильная адаптация */
@media screen and (max-width: 1200px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        padding: 10px !important;
    }
    
    /* Все cnt-box элементы */
    .cnt-box {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .cnt-boxTop {
        width: 100% !important;
        max-width: 100% !important;
        background-size: 100% 65px !important;
    }
    
    .cnt-boxFiller {
        width: 100% !important;
        max-width: 100% !important;
        background-size: 100% auto !important;
    }
    
    .cnt-boxbottom {
        width: 100% !important;
        max-width: 100% !important;
        background-size: 100% 55px !important;
    }
    
    .cnt-boxInfo {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    
    /* Баннеры и навигация */
    #banner_outline,
    #banner,
    #navBox,
    #navBoxmenu,
    #bottom-notes {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Изображения */
    .cnt-boxInfo img,
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Flex контейнеры */
    [style*="display: flex"],
    [style*="display:flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    [style*="display: flex"] img,
    [style*="display:flex"] img {
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        margin: 10px auto !important;
    }
    
    /* Флоаты */
    .float-R,
    .float-L,
    [style*="float:"],
    [style*="float: "] {
        float: none !important;
        margin: 10px auto !important;
        display: block !important;
    }
    #logo {
        width: 100% !important;
        height: auto !important;
        font-size: 8px !important;
        overflow: hidden;
    }
    
    #logo pre {
        font-size: 4.5px !important;
        line-height: 1 !important;
        overflow-x: auto;
        white-space: pre;
    }
    
    .logo-img,
    #logo img {
        width: 60px !important;
        height: 60px !important;
        margin: -20px 0px 0px auto !important;
        display: block !important;
        float: right !important;
    }
    
    #banner_outline {
        height: auto !important;
        min-height: 150px !important;
    }
    
    #banner {
        height: auto !important;
        min-height: 100px !important;
    }
    
    /* Навигация */
    #navBox {
        top: -10px !important;
        height: auto !important;
    }
    
    #navBoxmenu {
        height: auto !important;
        width: 100% !important;
    }
    
    #navBoxmenu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start !important; 
		padding-left: 0px !important;    
        gap: 5px;
    }
    
    #navBoxmenu ul li {
		width: 70px !important;     /* ← было 100px */
		height: 24px !important;    /* ← было 28px */
		margin: 2px !important;     /* ← было 5px */
	}

	.button {
		width: 70px !important;         /* ← было 100px */
		height: 24px !important;        /* ← было 28px */
		font-size: 11px !important;     /* ← было 14px */
		line-height: 24px !important;   /* ← было 28px */
		background-size: 70px 72px !important;  /* ← ширина = width, высота = height*3 */
	}
}