
/* ===== 🎨 Глобальные переменные ===== */
:root {
    --color-primary: #ffd782;
    --color-secondary: #e1ce87;
    --color-background: #f5f7fa;
    --color-dark: #1e1e1e;
    --color-light: #ffffff;
    --color-accent: #ff6b6b;
    --accent-bg-color: rgb(149 111 0 / 90%);
    --color-gray: gray;
    --bgc-color: rgb(48 44 76 / 90%);
    --bg-form-head: rgb(209 163 0 / 40%);
    --bg-form-table: rgb(48 46 37 / 90%);
    --bg-dark: #20232A;

    --font-accent-regular: TrajanSansPro-Regular;
    --font-accent-bold: TrajanSansPro-Semibold;
    --font-regular: Montserrat-Regular;
    --font-bold: Montserrat-SemiBold;


    /* размеры */
    --sidebar-width: 250px;
    --container-padding: 30px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
* {
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    margin: 0;
    height: 100%;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #1f1f1f;
    color: #eee;
}

/* Barra de carregamento */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #e1ce87, #ffd782, #e1ce87);
    background-size: 200% 100%;
    animation: gradientMove 2s linear infinite;
    z-index: 9999;
    width: 0%;
    transition: width 0.3s ease, opacity 0.5s ease;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Header */
header {
    background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
    border-bottom: 2px solid #a67c52;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    text-align: center;
    color: #e0d6c3;
    font-family: 'Uncial Antiqua', serif;
}

/* Títulos no Header */
header h1, header h2, header h3 {
    margin: 0;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255,215,0,0.5);
}

/* Texto normal no Header */
header p {
    margin: 5px 0 0 0;
    color: #e0d6c3;
    font-size: 0.95em;
}

/* Links no Header */
header a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
header a:hover {
    color: #fff5c4;
}

/* Fonte medieval */
@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap');

/* Container do menu */
nav {
    background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
    border-bottom: 2px solid #a67c52;
    padding: 8px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo */
nav .logo {
    margin-right: 25px;
}
nav .logo img {
    max-height: 48px;
}

/* Lista principal */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

/* Itens do menu */
nav ul li {
    margin: 0 12px;
}

/* Links */
nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e0d6c3;
    font-family: 'Uncial Antiqua', serif;
    font-size: 1em;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Ícones SVG adaptáveis */
nav ul li a svg {
    width: 20px;
    height: 20px;
    stroke: #e0d6c3;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 0 3px rgba(255,215,0,0.3));
}

/* Texto */
nav ul li a span {
    white-space: nowrap;
}

/* Efeito Hover */
nav ul li a:hover {
    background: rgba(166, 124, 82, 0.2);
    color: #ffd700;
}
nav ul li a:hover svg {
    stroke: #ffd700;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.8));
}

/* Item ativo */
nav ul li.active a {
    background: rgba(166, 124, 82, 0.3);
    color: #ffd700;
}
nav ul li.active a svg {
    stroke: #ffd700;
}

/* Responsivo */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 8px;
    }
}

/* Hero */
.hero {
    position: relative;
    text-align: center;
}
.hero-bg img {
    width: 100%;
    height: auto;
}
.hero-text {
    position: absolute;
    top: 5%;
    left: 51%;
    transform: translate(-50%, -50%);
}
.hero-text h1 {
    font-size: 5.0em;
    background: linear-gradient(90deg, #a64bf4, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pulsar-img {

    display: block;
    margin: 10px auto;
    max-width: 300px; /* ajusta o tamanho */
    transition: transform 0.3s ease-in-out;
    animation: pulseGlow 3s infinite ease-in-out;
}
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.3));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    }
}

.pulsar-img2 {

    display: block;
    margin: 10px auto;
    max-width: 50px; /* ajusta o tamanho */
    transition: transform 0.3s ease-in-out;
    animation: pulseGlow2 3s infinite ease-in-out;
}
@keyframes pulseGlow2 {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.0));
    }
    50% {
        transform: scale(1.80);
        filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.0));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.0));
    }
}

/* Efeito hover opcional para interação */
.pulsar-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
}


/* Status Servidor */
.server-status {
    text-align: center;
    padding: 15px;
}
.online { color: #00ff00; }
.offline { color: #ff3333; }



#diary {
    padding: 0;
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    /* Remover height fixa */
}

/* BACKGROUND VIDEO FULLSCREEN - ATUALIZADO */
#diary_video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    z-index: -1;
    background: #13100E;
    pointer-events: none;
}

.diary_fon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Para garantir que o conteúdo fique acima do vídeo */
.diary_gradient {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0 112px;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(50% 50% at 50% 50%, rgba(19, 16, 14, 0.00) 0%, #13100E 100%), linear-gradient(180deg, rgba(19, 16, 14, 0.00) 63.5%, #13100E 100%), linear-gradient(180deg, #13100E 0%, rgba(19, 16, 14, 0.00) 62.5%);
}

.wrap {
    width: 1220px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.header .wrap {
    position: relative;
}
.about_block {
    padding: 60px 0;
}

/* Título central */
.block_title {
    font-family: 'Uncial Antiqua', serif;
    color: var(--color-primary, #ffd700);
    font-size: 38px;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Container do título */
.title_center_block {
    text-align: center;
    line-height: 1.6;
    font-size: 22px;
    font-family: 'Uncial Antiqua', serif;
    color: #fff;
    text-shadow: 0 0 3px rgba(0,0,0,0.6);
}

.server_about_all {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 120px;
    margin-bottom: 60px;
}
.s_about_item {
    text-align: center;
}
.s_about_item h3 {
    font-family: var(--font-accent-regular), sans-serif;
    text-transform: uppercase;
    margin-top: 10px;
    color: var(--color-primary);
}
.s_about_item p {
    margin-top: 10px;
}
#diary .btn-wrapper {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
}
#other {
    padding: 30px 0;
}
.startgame {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}
.startgame_steps_num {
    color: #bebebe;
    font-size: 20px;
}
.startgame_steps_name {
    color: #fff;
    font-size: 24px;
    font-family: var(--font-accent-regular), sans-serif;
}
.subtitle {
    color: var(--color-primary);
    font-family: var(--font-accent-regular), sans-serif;
    font-size: 26px;
}
.startgame_container p {
    margin: 15px 0;
}



footer {
    text-align: center;
    background: transparent;
    padding: 10px;
    margin-top: 20px;
    font-size: 0.9em;
    color: #ccc;
}

footer a:hover {
    text-decoration: underline;
}

/* Lista de notícias */
  .news-item {
    background: #222;
    border-left: 5px solid #f9a825;
    margin-bottom: 25px;
    padding: 20px 25px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  .news-item:hover {
    background: #333;
  }

  .news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .news-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffd54f;
  }

  .news-date {
    font-size: 0.9rem;
    color: #bbb;
    font-style: italic;
  }

  .news-content {
    font-size: 1rem;
    line-height: 1.5;
    color: #ddd;
  }

  /* Ícones Font Awesome para destaque */
  .news-icon {
    color: #f9a825;
    margin-right: 8px;
  }

  /* Responsividade */
  @media (max-width: 900px) {
    #diary_video {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        object-fit: cover;
    }
    @media (orientation: portrait) {
        #diary_video {
            width: 100vw;
            height: 100vh;
            min-width: 100vw;
            min-height: 100vh;
            object-fit: cover;
        }
    }
    @media (orientation: landscape) {
        #diary_video {
            width: 100vw;
            height: 100vh;
            min-width: 100vw;
            min-height: 100vh;
            object-fit: cover;
        }
    }
}

/* Player de Música */
#music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#music-toggle {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

#music-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

#music-icon {
    transition: all 0.3s ease;
}

#music-tooltip {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#music-toggle:hover + #music-tooltip {
    opacity: 1;
}

/* Ícone quando música está pausada */
#music-icon.paused {
    opacity: 0.6;
}

@media (max-width: 768px) {
    #music-player {
        bottom: 15px;
        right: 15px;
    }
    #music-toggle {
        width: 35px;
        height: 35px;
    }
}

#diary {
    padding: 0;
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

#diary video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    z-index: -1;
    background: #13100E;
    pointer-events: none;
}

#diary .diary_fon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: -1;
    overflow: hidden;
}

#diary .diary_gradient {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0 112px;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(50% 50% at 50% 50%, rgba(19, 16, 14, 0.00) 0%, #13100E 100%), linear-gradient(180deg, rgba(19, 16, 14, 0.00) 63.5%, #13100E 100%), linear-gradient(180deg, #13100E 0%, rgba(19, 16, 14, 0.00) 62.5%);
}

#diary .about_block {
    width: 100%;
    position: relative;
    margin: 0 auto;
    text-align: center;
}

#diary .title_center_block {
    flex: 1;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

#diary .block_title {
    text-align: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

#diary .grand-opening {
    text-align: center;
    margin: 30px auto;
    color: #ffd700;
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    animation: blink 1.5s infinite, glow 2s ease-in-out infinite alternate;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ffd700;
    border-radius: 10px;
    display: inline-block;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#diary .countdown-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px auto 0 auto;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 470px;
}

#diary .countdown-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 10px 7px;
    min-width: 58px;
    text-align: center;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.18);
    flex: 1;
}

#diary .countdown-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 7px #fff;
    margin-bottom: 2px;
}

#diary .countdown-label {
    font-size: 0.9rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#diary footer {
    text-align: center;
    margin-top: 40px;
    color: #ffd700;
    font-size: 1.2rem;
}

/* RESPONSIVO */

@media (max-width: 900px) {
    #diary video,
    #diary .diary_fon {
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        left: 0 !important;
        top: 0 !important;
    }
    #diary .diary_gradient {
        min-height: 100vh;
        height: auto;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    #diary .about_block {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0 !important;
    }
    #diary .title_center_block {
        max-width: 100%;
        margin-bottom: 0;
    }
    #diary .block_title {
        font-size: 1.5rem;
    }
    #diary .grand-opening {
        font-size: 1rem;
        padding: 7px;
    }
    #diary .countdown-container {
        gap: 3px;
        max-width: 98vw;
    }
    #diary .countdown-box {
        min-width: 19vw;
        padding: 7px 2vw;
    }
    #diary .countdown-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    #diary .block_title {
        font-size: 1rem;
    }
    #diary .countdown-container {
        gap: 2px;
        max-width: 98vw;
    }
    #diary .countdown-box {
        min-width: 18vw;
        padding: 6px 1vw;
    }
    #diary .countdown-value {
        font-size: 1rem;
    }
}

/* HOME: vídeo de fundo */
#diary video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    z-index: -1;
    background: #13100E;
    pointer-events: none;
}