@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Roboto+Condensed:ital,wght@1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Roboto+Condensed:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('root.css');


* {
    margin: 0;
    padding : 0;
}

.d_touch {
    user-select:none;
    -webkit-user-drag: none;
}

a {
    color: var(--text-primary);
    text-decoration-line: underline;
}

body {
    background: var(--bg-base);
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

#header {
    position: absolute;
    display: flex;
    align-items:center;
    width: 100vw;
    height: 50px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
}

.title {
    margin-left: 10px;
    font-size: var(--fs-rod);
    font-family: var(--font-accent);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.title:hover {
    color: var(--text-muted);
}

.select_web {
    margin-left: 10px;
    font-size: var(--fs-rod);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.select_web:hover {
    color: var(--text-muted);
}

#content {
    position: absolute;
    width: 100vw;
    height: 100vh;
}

.button_menu {
    margin-left: -5px;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 2px solid var(--glass-border);
    box-shadow:var( --glass-shadow);
    margin-top: 250px;
    width: 350px;
    height: auto;
    padding-bottom: 12px;
}

.title_block {
    margin-top: 20px;
    margin-bottom: 20px;
}

#footer {
    bottom: 0;
    position:absolute;
    width: 100vw;
    height: 24px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
}

.block_footer {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.creator, .copyright, .email {
    font-size: var(--fs-body);
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.steam-widget {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 12px 14px;
    margin: 0 12px 10px 12px;
    transition: background var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.steam-widget:hover {
    background: var(--glass-bg-hover);
}

.widget-loading,
.widget-error {
    font-size: var(--fs-small);
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* Аватар Steam */
.steam-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.steam-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: block;
    border: 1px solid var(--glass-border);
}

/* Точка статуса */
.steam-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
}

.steam-dot.online  { background: var(--status-online); }
.steam-dot.offline { background: var(--status-offline); }
.steam-dot.busy    { background: var(--status-busy); }
.steam-dot.away    { background: var(--status-away); }

/* Текстовая часть */
.steam-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.steam-name {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-status {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-status.playing {
    color: var(--status-online);
}

/* === Карточка Twitch === */
.twitch-widget {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 12px 14px;
    margin: 0 12px 10px 12px;
    transition: background var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.twitch-widget:hover {
    background: var(--glass-bg-hover);
}

.twitch-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #9146FF;
    border-radius: var(--radius-sm);
    font-size: 22px;
    color: white;
}

.twitch-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
}

.twitch-dot.live    { background: #FF0000; animation: pulse 1.5s infinite; }
.twitch-dot.offline { background: var(--status-offline); }

.twitch-info { flex: 1; min-width: 0; }

.twitch-name {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 600;
}

.twitch-status {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twitch-status.live { color: #FF5555; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}