@font-face {
    font-family: 'CourierNewCustom';
    src: url('fonts/cour.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CourierNewCustom';
    src: url('fonts/courbd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CourierNewCustom';
    src: url('fonts/couri.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'CourierNewCustom';
    src: url('fonts/courbi.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

.hl { color: var(--accent); }
.bad { color: var(--danger); }
.good { color: var(--success); }
.alt { color: var(--text-alter); }
.text { color: var(--text-dim); }

.cmd-category {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

::selection {
    background-color: var(--accent);
    color: var(--selector);      
}

::-moz-selection {
    background-color: var(--accent);
    color: var(--selector);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--selector); 
    border-left: 1px solid var(--border); 
}

::-webkit-scrollbar-thumb {
    background: var(--border); 
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--selector);
}

.dev-notification {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #23272ae1;
    border: 1px solid var(--accent);
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 10001;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { bottom: 50px; opacity: 0; }
    to { bottom: 100px; opacity: 1; }
}

.dev-content {
    font-family: 'CourierNewCustom', monospace;
    font-size: 14px;
    color: var(--white);
    text-align: center;
}

body {
    height: 100%;
    margin: 0;
    color: var(--white);

    font-family: 'CourierNewCustom', Courier, monospace;
    font-size: 18px; 
    word-spacing: -2px; 
    line-height: 1.0;
}

.background-image {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; 
    z-index: -1;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #23272ae1;
    padding: 12px 0;
    box-shadow: none;
    z-index: 1000;
    text-align: center; 
}
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 16px;
}

.header-container {
    display: inline-block;
    text-align: center;
}
.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; 
    height: 28px; 
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 15px;
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    overflow: hidden;
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    position: absolute;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
    animation: scroll-text 15s linear infinite;
}

.pda-time-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.pda-time {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: bold;
    line-height: 1;
}


@keyframes scroll-text {
    0% { transform: translate(100%, -50%); }
    100% { transform: translate(-100%, -50%); }
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px #000;
    text-align: center;
    margin-bottom: 5px;
}

main {
    height: 90%;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: 48px;
    padding: 0 10px 0 16px;
}

.sidebar {
    position: sticky;
    top: 105px;
    height: calc(100vh - 187px);
    width: 13%;
    background: #23272ae1;
    padding: 5px 24px 10px 24px;
    border-radius: 16px;
    overflow-y: none;
}

.content-wrapper {
    width: 82%;
    height: calc(100vh - 198px);
    background: #202124f5;
    padding: 16px 0 16px 32px;
    border-radius: 16px;
    margin-top: 56px;
    margin-bottom: 50px;
}

.content-mask{
    width: 100%;
    height: 100%;
    border-radius: 16px;

    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%, black 8%, black 92%, transparent 100%
    );
    mask-image: linear-gradient(to bottom, 
        transparent 0%, black 8%, black 92%, transparent 100%
    );
    
    overflow-y: auto; 
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) #23272a;
}

.content {
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
}

.content hr {
    width: 100%;
}

.sidebar h2 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    margin-bottom: 10px;
}
.sidebar a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar a:hover {
    color: var(--accent);
    padding-left: 3px;
    transition: 0.2s;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: #23272a;
    border-radius: 8px;
}

.content::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 8px;
}
.content h1 {
    color: var(--accent);
    margin-top: 0;  
    text-align: center;
}
.content h4 {
    color: #5b5b5b;
    text-align: center;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px;
    padding: 20px 0;
}

.item-header {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.item-header img {
    max-height: 80px;
    max-width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
}

.more-info-text {
    margin-top:auto;
    color:#444;
    text-align:center;
}

.item-card {
    background: #1c1c20;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    min-height: 250px;
    height: auto; 
    perspective: 1000px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.item-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #25252b;
}

.item-card-inner {
    position: relative;
    width: 100%;
    height: 100%; 
    min-height: inherit;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}
.item-card-front, .item-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.item-header img.rotated {
    max-height: none; 
    max-width: none;
    height: 200px; 
    width: auto;
    transform: rotate(-90deg);
    margin: -60px 0px;     
    flex-shrink: 0;
}
.item-title {
    font-weight: 800;
    color: #fff;
    text-align: center;
}

.item-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-info br {
    display: none;
}

.pets-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.pet-card {
    background: #1c1c20;
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pet-card:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    background: #232329;
}

.pet-main {
    flex: 0 0 300px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pet-header img {
    max-width: 180px;
    height: auto;
    margin: 15px 0;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.pet-name {
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pet-source {
    margin-top: 15px;
    line-height: 1.5;
    color: #ccc;
}

.pet-source strong {
    color: #ffcc00;
    display: block;
    margin-bottom: 5px;
}

.pet-details {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.details-label {
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.abilities {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abilities li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #eee;
}

.legend {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
    padding: 15px 0;
    background: #23272a;
    color: #bcbcbc;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px solid #333;
}
footer a {
    color: var(--accent);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

#unic, .ability-passive { color: var(--text-alter); }
#text { color: var(--text-dim); }

.stats {
    margin-bottom: 8px;
}
.abilities {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.abilities li {
    margin-bottom: 6px;
    line-height: 1.3;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--white);
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.dropdown-btn:hover {
    color: var(--accent);
}

.caret {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-container {
    display: none;
    max-height: 135px; 
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 5px;
    padding-right: 5px; 
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.4) transparent;
}

.dropdown-container::-webkit-scrollbar {
    width: 4px;
}
.dropdown-container::-webkit-scrollbar-track {
    background: rgba(var(--accent-rgb), 0.15); 
}
.dropdown-container::-webkit-scrollbar-thumb {
    background-color: rgba(var(--accent-rgb), 0.6); 
    border-radius: 8px;
}

.dropdown-container li a {
  padding: 0px 10px;
}
.dropdown-container li:first-child {
  margin-top: 7px;
}

.dropdown-container li a::before {
    content: "-";
    margin-right: 3px;
    opacity: 0.5;
    color: var(--accent);
}

.dropdown-btn.active .caret {
  transform: rotate(180deg);
}

.main-text{
  margin-left: 15px;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 10px auto;
  padding: 0 16px;
}

.news-item {
    background: #1a1d20; 
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 
        inset 0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05);

    border: 1px solid #121416;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s ease, border-color 0.3s ease;
    }

.news-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-item:hover {
    background: #272c31;
    border-color: var(--accent); 

    transform: translateY(-5px); 

    box-shadow: 
    inset 0 4px 20px rgba(0, 0, 0, 0.8),
    inset 0 0 5px rgba(0, 200, 255, 0.1); 
}

.news-item h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: var(--accent);
}

.news-item p {
    margin: 0 0 16px 0;
    color: #bcbcbc;
    line-height: 1.4;
}

.open-modal-btn {
    background-color: var(--accent);
    color: #23272a;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.open-modal-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
    animation: blink 0.8s infinite alternate;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: #23272a;
    color: var(--white);
    margin: 8% auto;
    padding: 40px 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-size: 1.1rem;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
    transition: color 0.2s;
}
.close-btn:hover { color: #fff; }

.menu-toggle { display: none; }

.current-v {
    display: block;
    padding: 10px 0;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-v div:nth-child(2) {
    animation: blink 3s infinite;
}

.theme-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.theme-btn:hover {
    background: var(--accent);
    color: #000;
}

@keyframes blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

@media (max-width: 768px) {
      body {
        font-size: 16px;
    }
    .pet-card {
        flex-direction: column;
    }
    .pet-main {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .content h1 {
        font-size: 22px;
    }

    header {
        position: static;
        padding: 10px 0;
    }
    .logo {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    main {
        display: block;
        padding: 0 8px;
        margin-top: 5px !important;
        padding-top: 0 !important;

    }
    .content-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 12px 0 12px 12px  !important;
        height: calc(100vh - 140px) !important;
        height: calc(100dvh - 140px) !important;
        min-height: 50vh;
        box-sizing: border-box;
        margin-top: 0 !important;
        overflow: hidden;
    }

    .content-mask {
        width: 100%;
        height: 100% !important;

        -webkit-mask-image: linear-gradient(to bottom, 
            transparent 0%, 
            black 5%, 
            black 95%, 
            transparent 100%
        );
        mask-image: linear-gradient(to bottom, 
            transparent 0%, 
            black 5%, 
            black 95%, 
            transparent 100%
        );

        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch;
    }

    .content {
        width: 100% !important;
        box-sizing: border-box;
        padding: 22px 8px 16px 0px !important;
        
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 10001;
        margin-top: 0;
        border-radius: 0 20px 20px 0;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    }
    .sidebar.active {
        left: 0;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }
    .item-card {
        border-radius: 8px;
        min-height: 150px !important;
    }

    .item-header {
        padding: 10px !important;
        gap: 0px  !important;
        max-height: 85px !important;
        overflow: hidden !important;
    }

    .item-header img {
        max-height: 75px !important; 
        max-width: 100% !important;
        
        width: auto !important;
        height: auto !important;
        
        object-fit: contain !important;
        margin: 0 auto !important; 
    }

    .item-header img.rotated {
        max-height: none !important;
        
        height: 120px !important; 
        width: auto !important;
        
        transform: rotate(-90deg);
        margin: -25px 0 !important; 
    }

    .item-info {
        padding: 6px;
        font-size: 11px;
    }
    .item-title {
        font-size: 13px;
    }

    .news-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .news-item {
        padding: 15px;
    }

  .menu-toggle {
        white-space: nowrap !important;
        line-height: 1 !important;
    
        display: block !important; 
        position: fixed !important;
        
        bottom: 50px !important; 
        left: calc(100% - 130px) !important;
        z-index: 99999 !important;
        
        background: var(--accent) !important;
        color: #000 !important;
        
        padding: 10px 18px !important; 
        font-size: 14px !important;
        
        border-radius: 50px;
        font-weight: 800;
        border: 2px solid #000;
        box-shadow: 0 5px 25px rgba(var(--accent-rgb), 0.4);

        transition: transform 0.2s ease, left 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
    }

    .menu-toggle.left-side { left: 10px !important; }
    .menu-toggle:active { transform: scale(0.95); }

    .modal-content {
        margin: 5% auto !important;
        padding: 20px 16px !important;
        width: 95% !important;
        max-width: none !important;
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        border-radius: 12px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content h2 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }

    .close-modal {
        top: 10px !important;
        right: 15px !important;
        font-size: 24px !important;
    }
}

.header-side-info { display: none; }

#ad-test-block {
    display: none;
    border-color: var(--accent);
    transform: none;
}
.ad-card {  
    position: sticky;
    top: 105px;
    height: fit-content;

    width: 230px;
    padding: 24px;
    border-radius: 16px;
    background: #1c1c20ed;
    overflow-y: auto;
    
    display: flex;
    flex-direction: column;
    
    overflow: hidden;
    transition: all 0.3s;
    align-self: flex-start;
}
.ad-card-mobile {
    display: none;
    width: 100%;
    height: 60px;
}

@media (max-width: 768px) {
    body.dev-mode-active .content-wrapper {
        height: calc(100vh - 183px) !important; 
        height: calc(100dvh - 183px) !important;
    }
}

#ad-test-block.visible { display: block; }

.ad-hr {
  position: relative; width: 200%; left: -30%;
  margin: 30px 0;
}

.ad-sub-block {
    height: 180px;
    padding: 5px 0;
}

.ad-sub-block h2 {
    margin-top: 0;
    color: #343536;
}

.ad-sub-block p { margin-bottom: 15px; }

.ad-badge {
    font-family: 'CourierNewCustom', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

@keyframes ad-pulse {
    0% { box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.6); }
    50% { box-shadow: inset 0 4px 20px rgba(0, 200, 255, 0.15); border-color: var(--white); }
    100% { box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.6); }
}

.pda-sys-toast {
    position: fixed;
    background: rgba(28, 28, 32, 0.95);
    border: 1px solid var(--danger);
    border-radius: 12px;
    padding: 16px;
    z-index: 10005;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(247, 90, 104, 0.1);
    font-family: 'CourierNewCustom', monospace;
    backdrop-filter: blur(5px);
    right: 50%;
    bottom: 110px;
    transform: translateX(50%);
    width: 90%;
    animation: slideUpPda 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.pda-sys-toast .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 24px;
}

.pda-sys-toast .toast-body {
    font-size: 23px;
    color: var(--white);
    line-height: 1.5;
}

.pda-sys-toast .close-toast {
    cursor: pointer;
    color: var(--text-dim);
    font-size: 28px;
    line-height: 1;
    transition: 0.2s;
}

.pda-sys-toast .close-toast:hover {
    color: var(--danger);
}

@keyframes slideUpPda {
    from { transform: translate(50%, 150%); opacity: 0; }
    to { transform: translate(50%, 0); opacity: 1; }
}

@media (min-width: 1200px) {
    .header-side-info {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-family: 'Courier New', monospace;
        line-height: 1.2;
        opacity: 0.4;
        transition: opacity 0.3s;
    }

    header:hover .header-side-info { opacity: 0.8; }

    .left-side {
        left: 30px;
        border-left: 2px solid var(--accent);
        padding-left: 10px;
    }

    .right-side {
        right: 30px;
        border-right: 2px solid var(--accent);
        padding-right: 10px;
        align-items: flex-end;
    }

    .side-label {
        font-size: 0.6rem;
        color: var(--accent);
        font-weight: bold;
    }

    .side-value {
        font-size: 0.75rem;
        color: var(--white);
    }
}