:root {
    --webenginebg1: #050a12;
    --webenginebg2: #0c1725;
    --webenginebg3: #050a12;
    --webenginecolor1: #d9b66d;
    --webenginecolor2: #e1ebf5;
    --webenginecolor3: #83cfff;
    --webenginecolor4: #ffffff;
    --webenginecolor5: #142638;
    --webenginecolor6: #e6c582;
    --webenginecolor7: #b69452;
    --webenginecolor14: #a4b6ca;
    --webenginecolor16: #293d51;
    --webenginecolor22: #101c2b;
    --webenginecolor24: #142638;
    --webenginecolor25: #b6c9dc;
    --webenginecolor26: #d9b66d;
    --webenginecolor27: #101c2b;
    --webenginecolor28: #142638;
    --webenginecolor33: #dce8f5;
    --webenginecolor57: #b6c9dc;
    --webenginecolor60: #e6c582;
    --webenginecolor61: #dce8f5;
}

html {
    min-width: 0 !important;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #050a12 !important;
    color: #dce8f5 !important;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
}

.global-top-bar {
    background: #050a12 !important;
    border-bottom: 1px solid #293d51;
    padding: 12px 0;
}

.global-top-bar .global-top-bar-content {
    width: 94%;
    max-width: 1440px;
}

#navbar {
    background: #0b1421 !important;
    border-bottom: 1px solid #b69452;
}

#navbar ul li a {
    color: #d9b66d !important;
    padding: 20px 24px;
    letter-spacing: 1px;
}

#navbar ul li a:hover {
    background: #65cfff15;
    color: #ffffff !important;
    box-shadow: inset 0 -3px #d9b66d;
}

#header {
    padding: 100px 15px 35px;
    background:
        radial-gradient(ellipse at center,#244b6888,transparent 65%),
        linear-gradient(160deg,#050a12,#132e47,#050a12);
}

.raklion-logo {
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(38px,8vw,110px);
    font-weight: 900;
    letter-spacing: 5px;
    color: #e6c582;
    text-shadow:
        0 2px #977034,
        0 4px #61451e,
        0 8px 12px #000,
        0 0 45px #65cfff66;
}

.raklion-season {
    color: #a5e0ff;
    letter-spacing: 8px;
    font-size: 16px;
}

.raklion-hero {
    text-align: center;
    padding: 30px 15px 65px;
    background: linear-gradient(#10263a,#050a12);
}

.raklion-hero h2 {
    font-family: Cinzel, Georgia, serif;
    color: #e6c582;
    font-size: clamp(24px,3vw,38px);
}

.raklion-hero p {
    color: #b7cce0;
    font-size: 18px;
    margin: 20px 0 30px;
}

.raklion-button,
.btn-primary {
    background: linear-gradient(135deg,#f3dca3,#a67b32) !important;
    color: #10151b !important;
    border: 1px solid #e6c582 !important;
    font-weight: bold;
    border-radius: 4px;
    transition: .25s;
}

.raklion-button {
    display: inline-block;
    padding: 17px 32px;
    margin: 5px;
    letter-spacing: 2px;
    text-decoration: none !important;
}

.raklion-button:hover,
.btn-primary:hover {
    box-shadow: 0 0 25px #d9b66d66;
    color: #10151b !important;
}

#container {
    width: 94% !important;
    max-width: 1440px;
    background: transparent !important;
    padding: 25px 0;
}

#content {
    background: transparent !important;
    padding: 15px 0;
    min-height: 350px;
}

.header-info-container {
    width: 94% !important;
    max-width: 1440px;
    background: transparent !important;
}

.header-info-container .header-info {
    display: block;
    width: 100%;
    background: #0c1725;
    border: 1px solid #30465c;
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
}

.online-count {
    color: #72e6a0 !important;
}

.webengine-online-bar-progress {
    background: linear-gradient(90deg,#227caa,#65cfff) !important;
}

.panel,
.panel-body,
.panel-general {
    background: #101c2b !important;
    color: #dce8f5 !important;
}

.panel {
    border: 1px solid #30465c !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px #0005;
}

.panel-heading,
.panel-sidebar > .panel-heading {
    background: #142638 !important;
    color: #e6c582 !important;
    border-bottom: 1px solid #b69452 !important;
    padding: 18px;
}

.panel-body {
    padding: 20px;
}

.panel-sidebar .btn-xs {
    font-size: 11px;
    padding: 4px 7px;
}

.panel-title {
    color: #e6c582 !important;
}

h1,h2,h3,h4,.page-title {
    color: #e6c582;
}

.form-control {
    background: #080f19 !important;
    border: 1px solid #30465c !important;
    color: #ffffff !important;
    min-height: 42px;
}

.form-control:focus {
    border-color: #65cfff !important;
    box-shadow: 0 0 10px #65cfff33;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #65cfff !important;
}

.sidebar-banner {
    display: none;
}

.home-news-block {
    background: #101c2b;
    padding: 25px;
    border: 1px solid #30465c;
    border-radius: 8px;
}

.raklion-stats {
    width: 94%;
    max-width: 1440px;
    margin: 25px auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.raklion-stat {
    background: linear-gradient(145deg,#142638,#0b1421);
    border: 1px solid #30465c;
    border-top: 2px solid #b69452;
    border-radius: 8px;
    text-align: center;
    padding: 28px 10px;
}

.raklion-stat strong {
    display: block;
    font-family: Cinzel, Georgia, serif;
    font-size: 30px;
    color: #e6c582;
}

.raklion-stat span {
    color: #a5c8e3;
    font-size: 12px;
    letter-spacing: 2px;
}

.footer {
    width: 94% !important;
    max-width: 1440px;
    background: #080f19 !important;
    color: #a6b8ca;
    border-top: 1px solid #b69452;
    margin-bottom: 0;
}

#raklion-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

@media(max-width: 767px) {
    #navbar ul li a {
        padding: 12px;
        font-size: 12px;
    }

    #header {
        padding-top: 60px;
    }

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

    #content .col-xs-8,
    #content .col-xs-4 {
        width: 100%;
    }

    .raklion-logo {
        letter-spacing: 1px;
    }

    .raklion-season {
        letter-spacing: 3px;
    }

    .raklion-stat strong {
        font-size: 23px;
    }
}

@media(prefers-reduced-motion: reduce) {
    #raklion-snow {
        display: none;
    }
}

body {
    background:
        linear-gradient(to bottom, transparent 350px, #050a12 1200px),
        url('../assets/images/background.webp')
        center top / 100% auto no-repeat
        #050a12 !important;
}

#header {
    background: transparent !important;
    padding: 65px 15px 15px;
}

.raklion-hero {
    background: transparent !important;
    padding: 15px 15px 35px;
}

.raklion-hero h2,
.raklion-hero p {
    text-shadow: 0 2px 8px #000;
}

.raklion-stat,
.panel,
.home-news-block {
    background: linear-gradient(145deg,#102b45ee,#030c17ee) !important;
    border: 1px solid #d6b36a !important;
    box-shadow: inset 0 0 18px #008cff33, 0 0 15px #009dff44;
}

.raklion-button {
    background: linear-gradient(180deg,#fff0bc,#d9ad50 45%,#93601b 50%,#eac474) !important;
    border: 2px solid #f3d795 !important;
    padding: 18px 45px;
    clip-path: polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%);
}

.raklion-button:hover {
    filter: brightness(1.25);
    transform: translateY(-3px);
}

@media(max-width:767px) {
    body {
        background-size: auto 850px !important;
    }
}


/* LOGOTIPO OFICIAL RAKLION */

#header {
    padding: 25px 15px 0 !important;
}

.raklion-logo {
    width: min(780px, 90vw);
    aspect-ratio: 2 / 1;
    height: auto;
    margin: 0 auto;
    font-size: 0 !important;
    background: url('../assets/images/logo.webp')
        center / contain no-repeat;
    filter: drop-shadow(0 5px 15px #000);
    animation: raklionGlow 5s ease-in-out infinite;
}

.raklion-season {
    display: none !important;
}

@keyframes raklionGlow {
    0%,100% {
        filter: drop-shadow(0 5px 15px #000);
    }
    50% {
        filter: drop-shadow(0 0 18px #009dff99);
    }
}

.raklion-hero {
    padding-top: 5px !important;
}

@media(max-width:767px) {
    .raklion-logo {
        width: 90%;
    }
}

@media(prefers-reduced-motion:reduce) {
    .raklion-logo {
        animation: none;
    }
}


/* RAKLION IMPERIAL PANELS */

.raklion-stat,
.panel,
.home-news-block,
.header-info-container .header-info {
    position: relative;
    border: 2px solid #b68a42 !important;
    border-radius: 3px !important;
    background: linear-gradient(145deg,#102b45,#040b15) !important;
    box-shadow:
        inset 0 0 0 3px #07111e,
        inset 0 0 0 4px #8c6a35,
        inset 0 0 25px #009dff22,
        0 5px 20px #0009;
}

.raklion-stat::before,
.panel::before,
.home-news-block::before {
    content: "";
    position: absolute;
    top: -7px;
    left: -7px;
    width: 23px;
    height: 23px;
    border-top: 4px double #f3d28a;
    border-left: 4px double #f3d28a;
    pointer-events: none;
}

.raklion-stat::after,
.panel::after,
.home-news-block::after {
    content: "";
    position: absolute;
    bottom: -7px;
    right: -7px;
    width: 23px;
    height: 23px;
    border-bottom: 4px double #f3d28a;
    border-right: 4px double #f3d28a;
    pointer-events: none;
}

.raklion-stat {
    transition: .3s;
}

.raklion-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px #009dff66;
}

.raklion-stat strong {
    color: #f4d38b;
    text-shadow: 0 0 12px #d6b36a55;
}

.panel-heading,
.panel-sidebar > .panel-heading {
    background: linear-gradient(180deg,#203e58,#071321) !important;
    border-bottom: 2px solid #b68a42 !important;
    color: #f4d38b !important;
    font-family: Georgia, serif;
    font-size: 17px;
    padding: 18px 14px;
}

.panel-body {
    background: transparent !important;
    padding: 22px !important;
}

.panel-sidebar .form-control {
    background: #030b15 !important;
    border: 1px solid #927344 !important;
    border-radius: 3px;
    min-height: 44px;
    box-shadow: inset 0 0 12px #0008;
}

.panel-sidebar .form-control:focus {
    border-color: #65cfff !important;
    box-shadow: 0 0 15px #009dff44;
}

.btn-primary {
    background: linear-gradient(180deg,#f7dfa3,#ad7b30) !important;
    border: 1px solid #e6c582 !important;
    box-shadow: inset 0 0 6px #ffffff44;
    color: #080d16 !important;
}

.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 18px #d6b36a66;
}

#navbar {
    background: linear-gradient(180deg,#142638,#030a13) !important;
    border-bottom: 3px double #d6b36a !important;
}

#navbar a {
    font-family: Georgia, serif;
    font-weight: bold;
    text-shadow: 0 2px 5px #000;
}

#navbar a:hover {
    text-shadow: 0 0 15px #65cfff;
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #050a12;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#e6c582,#70501c);
    border-radius: 5px;
}

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

/* RAKLION HALL DA FAMA */

.raklion-hall {
    padding: 25px 15px;
    margin-bottom: 25px;
    text-align: center;
    background: radial-gradient(ellipse at top,#173650,#050b14);
    border: 1px solid #b68a42;
    box-shadow: inset 0 0 30px #0008;
}

.raklion-hall h2 {
    color: #f2ce80;
    font-family: Georgia,serif;
    font-size: 30px;
    letter-spacing: 3px;
    text-shadow: 0 0 15px #c69c5055;
}

.hall-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    color: #8bd5ff;
}

.raklion-podium {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: end;
    gap: 12px;
    margin: 35px 0 25px;
}

.podium-player {
    min-width: 0;
    color: #c6d7e7;
}

.podium-player h3 {
    font-family: Georgia,serif;
    font-size: 18px;
    overflow-wrap: anywhere;
    color: inherit;
}

.podium-player p {
    font-size: 11px;
}

.podium-player strong,
.podium-player small {
    display: block;
    margin: 6px 0;
}

.podium-crown {
    font-size: 48px;
    text-shadow: 0 0 20px currentColor;
}

.rank-1 {
    color: #f4cf75;
}

.rank-2 {
    color: #c0c8d4;
}

.rank-3 {
    color: #c78b59;
}

.rank-1 .podium-crown {
    font-size: 65px;
}

.podium-base {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    font-family: Georgia,serif;
    font-size: 40px;
    border: 2px solid currentColor;
    background: linear-gradient(145deg,#243a50,#050b14);
    box-shadow: inset 0 0 20px #0008;
}

.rank-1 .podium-base {
    height: 120px;
    background: linear-gradient(145deg,#795821,#21190c);
}

.rank-2 .podium-base {
    height: 85px;
}

.rank-3 .podium-base {
    height: 60px;
    background: linear-gradient(145deg,#57351f,#140e09);
}

.hall-link {
    display: inline-block;
    padding: 13px 24px;
    color: #f2ce80 !important;
    border: 1px solid #b68a42;
    background: #101f30;
    letter-spacing: 1px;
    transition: .3s;
}

.hall-link:hover {
    background: #243e56;
    box-shadow: 0 0 20px #009dff55;
    text-decoration: none;
}

@media(max-width:767px) {
    .raklion-podium {
        gap: 5px;
    }

    .podium-player h3 {
        font-size: 13px;
    }

    .raklion-hall h2 {
        font-size: 22px;
    }
}


/* RAKLION LIVE STATUS */

#raklion-status {
    width: 94%;
    max-width: 1440px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #b68a42;
    background: linear-gradient(145deg,#102b45,#040b15);
    box-shadow: inset 0 0 20px #009dff22;
    text-align: center;
}

#raklion-status h3 {
    font-family: Georgia,serif;
    color: #e6c582;
    letter-spacing: 3px;
    margin: 0 0 20px;
}

.raklion-status-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
}

.raklion-status-grid div {
    background: #050c17;
    border: 1px solid #30465c;
    padding: 18px;
    color: #dce8f5;
}

.raklion-status-grid strong {
    display: block;
    margin-top: 10px;
    letter-spacing: 2px;
}

@media(max-width:767px) {
    .raklion-status-grid {
        grid-template-columns: 1fr;
    }
}


/* STATUS UNIFICADO */

#raklion-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 15px;
}

#raklion-status h3 {
    margin: 0;
    font-size: 18px;
}

.raklion-status-grid {
    display: block;
}

.raklion-status-grid div {
    background: transparent;
    border: none;
    padding: 0;
}

.raklion-status-grid strong {
    margin: 0;
    font-size: 18px;
}

#rak-game::before {
    content: "\25CF";
    margin-right: 10px;
    text-shadow: 0 0 12px currentColor;
    animation: rakStatusPulse 2s infinite;
}

@keyframes rakStatusPulse {
    0%,100% { opacity: 1; }
    50% { opacity: .4; }
}

@media(prefers-reduced-motion:reduce) {
    #rak-game::before {
        animation: none;
    }
}


/* RAKLION EVENTOS IMPERIAIS */

.panel-sidebar-events {
    background: radial-gradient(
        ellipse at top,#173650,#040b15
    ) !important;
}

.panel-sidebar-events .panel-title {
    text-align: center;
    letter-spacing: 2px;
    font-size: 17px;
}

.panel-sidebar-events .panel-body {
    padding: 12px !important;
}

.panel-sidebar-events table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 0;
}

.panel-sidebar-events td {
    background: linear-gradient(145deg,#142d43,#08121e);
    border-top: 1px solid #806337 !important;
    border-bottom: 1px solid #806337 !important;
    padding: 16px 10px !important;
    vertical-align: middle !important;
}

.panel-sidebar-events td:first-child {
    border-left: 1px solid #806337;
    position: relative;
    padding-left: 44px !important;
}

.panel-sidebar-events td:last-child {
    border-right: 1px solid #806337;
}

.panel-sidebar-events td:first-child::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #e6c582;
    text-shadow: 0 0 12px #e6c58255;
}

.panel-sidebar-events tr:nth-child(1) td:first-child::before {
    content: "\265C";
}

.panel-sidebar-events tr:nth-child(2) td:first-child::before {
    content: "\2694";
}

.panel-sidebar-events tr:nth-child(3) td:first-child::before {
    content: "\2620";
}

.panel-sidebar-events tr:nth-child(4) td:first-child::before {
    content: "\2726";
}

.panel-sidebar-events tr:nth-child(5) td:first-child::before {
    content: "\265B";
}

.panel-sidebar-events tr:nth-child(6) td:first-child::before {
    content: "\2691";
}

.panel-sidebar-events span[id$="_name"] {
    color: #f2ce80 !important;
    font-weight: bold;
    font-size: 14px;
}

.panel-sidebar-events span[id$="_next"] {
    color: #dce8f5 !important;
    font-size: 12px;
}

.panel-sidebar-events .smalltext {
    color: #91a9bf !important;
    font-size: 11px;
}

.panel-sidebar-events td:last-child .smalltext {
    color: #83d8ff !important;
    font-size: 16px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px #009dff55;
}

.panel-sidebar-events tr:hover td {
    background: #1a3a53 !important;
}


/* RAKLION DOWNLOAD PREMIUM */

.rak-download,
.rak-requirements {
    position: relative;
    max-width: 850px;
    margin: 25px auto !important;
    border: 1px solid #c5a05a !important;
    outline: 1px solid #725a32;
    outline-offset: 4px;
    background: linear-gradient(135deg,#142c43,#080f1b) !important;
    box-shadow: 0 10px 40px #0009 !important;
}

.rak-download {
    padding: 35px 25px !important;
}

.rak-download h1 {
    font-size: 46px !important;
    letter-spacing: 5px !important;
    text-shadow: 0 3px 15px #c5a05a55;
}

.rak-download h3 {
    font-size: 23px !important;
    letter-spacing: 3px;
}

.rak-download p {
    font-size: 15px !important;
    line-height: 1.8;
}

.rak-download-wait,
.rak-download-btn {
    display: block !important;
    width: 90%;
    max-width: 420px;
    margin: 25px auto 5px !important;
    padding: 18px !important;
    font-size: 15px !important;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffe0a0 !important;
    background: linear-gradient(#493b25,#211b13) !important;
    border: 1px solid #c5a05a !important;
    box-shadow: 0 0 20px #c5a05a22;
}

.rak-download-btn:hover {
    background: #8c682f !important;
}

.rak-requirements {
    padding: 25px !important;
}

.rak-requirements h3 {
    font-size: 23px !important;
    font-weight: bold;
    letter-spacing: 2px;
}

.rak-requirements table {
    font-size: 14px !important;
}

.rak-requirements th {
    padding: 16px !important;
    background: #20364b !important;
}

.rak-requirements td {
    padding: 14px 16px !important;
}

.rak-requirements tbody tr:nth-child(even) {
    background: #ffffff05;
}

.rak-requirements tbody tr:hover {
    background: #c5a05a12;
}

@media(max-width:600px) {
    .rak-download h1 {
        font-size: 30px !important;
    }
    .rak-requirements {
        padding: 10px !important;
    }
    .rak-requirements td,
    .rak-requirements th {
        padding: 8px !important;
        font-size: 11px !important;
    }
}

