/* =====================================================
   RESET
===================================================== */

*,
*::before,
*::after
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html
{
    width: 100%;
    height: 100%;
}

body
{
    width:100%;
    height:100%;

    overflow:hidden;
    background:#000;
    color:#fff;

    font-family:
        Inter,
        Segoe UI,
        Arial,
        sans-serif;

    user-select:none;

    -webkit-font-smoothing:antialiased;
}

img
{
    display: block;
    pointer-events: none;
}

button
{
    appearance: none;
    border: none;
    outline: none;

    background: transparent;
    color: white;
    cursor: pointer;
}

a
{
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   COMMON
===================================================== */

.hidden
{
    display: none !important;
}

.screen
{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
}

.fadeInvisible
{
    opacity: 0;
    pointer-events: none;
}

.fadeVisible
{
    opacity: 1;
    pointer-events: auto;
}

/* =====================================================
   BACKGROUND
===================================================== */

#blackBg
{
    position: fixed;
    inset: 0;
    background: black;
    z-index: -1000;
}

/* =====================================================
   TEXT
===================================================== */

h1
{
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2
{
    font-size: clamp(22px, 1.2vw, 24px);
    font-weight: 600;
}

p
{
    font-size: clamp(16px, 1.1vw + 10px, 22px);
    margin-bottom: 2%;
    
    line-height: 1.4;
}


/* Стилизация скроллбара под золото */
.scroll-text::-webkit-scrollbar { width: 5px; }
.scroll-text::-webkit-scrollbar-thumb { background: #00ffff7c; }

.scroll-text {    
    overflow-y: auto;   
    margin-top: 2%;
    line-height: 1.6;
    gap: 10%;
    

}

.social-links {    
    /* overflow-y: auto; */
    /* margin-top: 4%; */
    padding-top: 1%;
    /* border-top: 2px solid #00ffff7c; */
    margin-bottom: 6%;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    gap: 4%;   
    /* padding-bottom: 4%;  */
}

.social-links p {    
    /* margin-top: 1%; */
    /* font-size: clamp(16px, 1.1vw + 10px, 24px); */
    font-size: clamp(16px, 1.1vw + 10px, 22px);
    /* font-weight: 600; */
    /* color: #00ffff7c; */
    color: white;

    /* margin-bottom: 4%; */
}

.social-btn
{
    display: inline-block;
    position: relative;
    color: rgba(255,255,255,0.85);
    font-size: clamp(16px, 1.1vw + 10px, 24px);
    font-weight: 600;
    letter-spacing: .15em;
    transition:
        color .2s ease,
        transform .15s ease;
}

.social-btn:hover
{
    color: white;
}

.social-btn:hover::after
{
    transform: scaleX(1);
}

.social-btn:active
{
    transform: translateY(1px);
}

.social-btn::after
{
    content: "";
    position: absolute;

    left: 0;
    bottom: -6px;

    width: 100%;
    height: 1px;

    background: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: .25s ease;
}


/* =====================================================
   PANELS
===================================================== */

#topPanel,
#middlePanel,
#bottomPanel
{
    
    opacity: 0;
    transform: translateY(-20px);

    transition:
        opacity .35s ease,
        transform .35s ease;
}

#topPanel{
    backdrop-filter: blur(8px);
}


.panelVisible
{
    opacity: 1 !important;
    transform: translateY(0px) !important;
}

/* .panel * {
    opacity: inherit !important;
} */
/* =====================================================
   BUTTONS
===================================================== */

#topPanel button
{
    position: relative;
    color: rgba(255,255,255,0.85);
    /* font-size: 18px; */
    font-size: clamp(14px, 1.1vw + 10px, 18px);
    font-weight: 600;
    letter-spacing: .15em;
    transition:
        color .2s ease,
        transform .15s ease;
}

#topPanel button:hover
{
    color: white;
}

#topPanel button:active
{
    transform: translateY(1px);
}

#topPanel button::after
{
    content: "";
    position: absolute;

    left: 0;
    bottom: -6px;

    width: 100%;
    height: 1px;

    background: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: .25s ease;
}

#topPanel button:hover::after
{
    transform: scaleX(1);
}

#topPanel button.is-back {
    color: #00ffff; /* Например, сделаем её бирюзовой/неоновой для акцента */
    letter-spacing: .2em; /* Чуть раздвинем буквы */
}

/* Также переопределим линию подчеркивания под твой новый цвет при ховере */
#topPanel button.is-back::after {
    background: #00ffff;
}

/* =====================================================
   SUBPAGES
===================================================== */

.subPage
{
    width: min(1200px, 90vw);


    background-color: #184d5e;

    border-radius: 40px;

    /* 4. Внутренние отступы: чтобы текст и кнопки не прилипали к краям подложки */
    padding: 70px 8% 70px 8%;

}

.subPage .content
{
    margin-top: 40px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

#buyCoffeeText {
    color: rgba(255, 230, 0, 0.85);    
}

#TeepublicShop {
    color: rgba(255, 230, 0, 0.85);
}

#TeepublicShopPS {
    font-size: clamp(14px, 1.1vw + 10px, 18px);
}

/* =====================================================
   PORTAL TEXT
===================================================== */

.signText,
.signTextR
{
   
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.signText h2,
.signTextR h2
{
    font-size: clamp(18px, 1.2vw, 20px);
    padding-top: 0.6%;
    margin-bottom: 0.6%;
    text-transform: uppercase;
    letter-spacing: .04em;

    white-space: pre-line;
    line-height: 1.2;
}

.signText p,
.signTextR p
{
    font-size: clamp(16px, 1.1vw + 10px, 18px);
    opacity: .8;
}

/* =====================================================
   PORTAL LIGHTS
===================================================== */

.doorLight,
.doorLight2,
.signLight
{
    opacity: 0;
    transition:
        opacity .25s ease;
}

.portal:hover .doorLight
{
    opacity: 1;
}

.portal:hover .doorLight2
{
    opacity: 1;
}

.portal:hover .signLight
{
    opacity: 1;
}

/* =====================================================
   LOGO
===================================================== */

#logo
{
    pointer-events: auto;
}

#logoLight
{
    mix-blend-mode: screen;
    opacity: .85;
    pointer-events: none;    
}

/* =====================================================
   CANVAS
===================================================== */

#cursorCanvas
{
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
    z-index: 999;
}

/* =====================================================
   SCROLL LOCK
===================================================== */

body.noScroll
{
    overflow: hidden;
}